<?php

?>
<script language="javascript" src="<?php echo base_url(); ?>application/views/farmacia/busquedaVenta.js"></script>
<script type="text/javascript">
    var urlBase = "<?php echo base_url();?>";
</script>
<h1>Venta->Búsqueda</h1>
<form class="form-horizontal well" accept-charset="utf-8">
    <fieldset>
        <legend>Criterio de búsqueda</legend>
        <div class="row-fluid">
            <div class="control-group">
                    <label class="control-label span2">Id de venta:</label>
                <div class="controls span2">
                    <input type="text" class="input" id="idVentaINP"/>
                </div>
            </div>
        </div>
        <div class="row-fluid">
            <div class="control-group">
                <label class="controls-label span2">Nombre de cliente:</label>
                <div class="controls span2">
                    <input type="text" class="input" id="nombreClienteINP"/>
                </div>
            </div>
        </div>
        <div class="row-fluid">
            <div class="control-group">
                <label class="controls-label span2">Fecha de inicio:</label>
                <div class="controls span2">
                    <input type='text' class='datePicker span9'
                    value=<?php echo date('d-m-Y')?> data-date-format='dd-mm-yyyy' id="fechaIniDTP">
                </div>
                <label class="controls-label span2 offset1">Fecha de fin:</label>
                <div class="controls span2">
                    <input type="text" class="datePicker span9"
                        value=<?php echo date('d-m-Y');?> data-date-format="dd-mm-yyyy" id="fechaFinDTP"/>
                </div>
            </div>
        </div>
        <div class="row-fluid">
                <div class="form-actions span7 offset1">
                        <button class="btn btn-primary" id="aceptarBTN" type='button' onclick="buscarVenta()">Aceptar</button>
                        <button class="btn offset1" type="reset" onclick="limpiar()">Limpiar</button>
                </div>
        </div>
        
    </fieldset>
</form>
<form class="form-horizontal well" accept-charset="utf-8">
<legend>Resultados de la búsqueda</legend>
<div class="row-fluid">
    <a name='p1'></a>
    <div id="resultadoVentaDIV" class="span9"></div>
</div>
<div class="row-fluid">
    <a name='p2'></a>
    <div id="detalleVentaDIV" class="span8 offset1"></div>
</div>
</form>